package com.base.exception;

class MyException extends Exception {
	public MyException(String name) {
	}
}

public class ExceptionDemo02 {

	public static void main(String[] args) {
        try {
		     throw new MyException("自定义异常");
		} catch (Exception e) {
			 System.out.println(e);
	    }
	}

}